package com.bonc.insight.service.impl;

import com.bonc.insight.entity.TClientInfo;
import com.bonc.insight.mapper.TClientInfoMapper;
import com.bonc.insight.service.ITClientInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import javax.annotation.Resource;

/**
 * <p>
 *   服务实现类
 * </p>
 *
 * @author bonc
 * @since 2022-01-14
 */
@Slf4j
@Service
public class TClientInfoServiceImpl extends ServiceImpl<TClientInfoMapper, TClientInfo> implements ITClientInfoService {

    @Resource
    private TClientInfoMapper tclientinfoMapper;

    @Override
    public IPage<TClientInfo> getTClientInfoList(Integer pageNum,Integer pageSize,TClientInfo tclientinfo){
        IPage<TClientInfo> page = new Page<>(pageNum,pageSize);
        //条件查询
        QueryWrapper<TClientInfo> wrapper = new QueryWrapper<>();
        //这里写条件
        return this.page(page, wrapper);
    }


}
